home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / MacTCP Library 1.1 / Library / HighLevel ƒ / Headers ƒ / HighLevelUDP.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-04  |  647 b   |  33 lines  |  [TEXT/SPM ]

  1. /*
  2.  
  3.     HighLevelUDP.h
  4.  
  5.     high-level UDP I/O functions.
  6.  
  7.     12/04/95 dn - Created
  8. */
  9.  
  10. #pragma once
  11.  
  12. #ifndef __HL_TCP_H
  13. #define __HL_TCP_H
  14.  
  15. #include <MyTCPIncludes.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. OSErr udpCreate(StreamPtr *stream,ProcPtr udpNotifyProc,Ptr buffer, long bufsize);
  22. OSErr udpSend(ip_addr host,udp_port port,StreamPtr stream,Ptr data,unsigned short len,Boolean push,Boolean urgent);
  23. OSErr udpRead(ip_addr host,udp_port port,StreamPtr stream,Ptr data,unsigned short *len);
  24. OSErr udpReturnBuffers(StreamPtr stream,rdsEntry *rds);
  25.  
  26. OSErr udpRelease(StreamPtr stream, Ptr *buffer, long *bufsize);
  27.  
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31.  
  32. #endif
  33.